{% extends "WileadUserManagerBundle::layout.html.twig" %}

{% block container -%}
<form method="get" action="">
    {{ form_rest(filter) }}
    <input class="btn btn-info" type="submit" name="submit-filter" value="搜索" />
    <a class="btn" href="{{ path('manager_alipayhistory') }}">清空条件</a>
</form>
<h1>支付宝支付记录</h1>

<table class="table">
    <thead>
        <tr>
            <th>订单编号</th>
            <th>支付宝订单</th>
            <th>支付状态</th>
            <th>支付用户</th>
            <th>金额</th>
            <th>商品名</th>
            <th>描述</th>
            <th>支付时间</th>
        </tr>
    </thead>
    <tbody>
        {% for entity in entities %}
            <tr>
                <td>{{ entity.outTradeNo }}</td>
                <td>{{ entity.tradeNo }}</td>
                <td>{{ entity.status }}</td>
                <td>{{ entity.info.buyer_email }}</td>
                <td>￥{{ entity.info.total_fee }}</td>
                <td>{{ entity.info.subject }}</td>
                <td>{{ entity.info.body }}</td>
                <td>{% if entity.created %}{{ entity.created|date('Y-m-d H:i:s') }}{% endif %}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    {% endblock %}
